﻿using AutoMapper;
using Blog.System.Application.Contracts.Blog;
using Blog.System.Domain.Blog;
using System;
using System.Collections.Generic;
using System.Text;

namespace Blog.System
{
    public class BlogAutoMapperProfile : Profile
    {
        public BlogAutoMapperProfile() 
        {
            CreateMap<Post, PostDto>();

            CreateMap<PostDto, Post>().ForMember(x => x.Id, opt => opt.Ignore());
        }
    }
}
